package proxyPattern;

public class Proxy implements Rent{

    private Host host;

    public Proxy(Host host) {
        this.host = host;
    }

    public void rent() {
        System.out.println("Proxy is renting the house");
        host.rent();
        System.out.println("Proxy is returning the house");
    }


}
